package com.ushine.design.design.a_creative_mode.d_builder.b_example;

/**
 * 客户端
 *
 * @author yls
 */
public class Client {
    public static void main(String[] args) {
        ActorController controller = new ActorController();
        ActorBuilder ab = new DevilBuilder();
        Actor actor = controller.construct(ab);
        System.out.println(actor);

        HeroBuilder builder = new HeroBuilder();
        Actor construct = controller.construct(builder);
        System.out.println(construct);
    }
}
